local skel = fk.CreateSkill {
  name = "rmt__fenru",
  tags = {Skill.Lord},
}

Fk:loadTranslationTable{
  ["rmt__fenru"] = "焚如",
  [":rmt__fenru"] = "主公技，你杀死角色后，其本局游戏无法获胜！",
  ["@@rmt__fenru"] = "<font color='red'>无法获胜!</font>",
}


skel:addEffect(fk.Deathed, {
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(skel.name) and data.killer == player
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:setPlayerMark(player, "@@rmt__fenru", 1)
    room:setPlayerProperty(target, "role", "renegade") -- why?
  end,
})

skel:addEffect(fk.Damage, {
  anim_type = "drawcard",
})

return skel
